package top.timous.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author Timous
 * @create 2022-02-24 15:23
 **/
@Configuration
public class WebAppConfig implements WebMvcConfigurer {
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/image/swiper/**").addResourceLocations("file:E:\\小程序设计\\images\\swiperImages\\");
        registry.addResourceHandler("/image/bigType/**").addResourceLocations("file:E:\\小程序设计\\images\\bigTypeImages\\");
    }
}
